package com.example.wechattakeaway.exception;


import com.example.wechattakeaway.enums.ResultEnum;

public class ResultException extends RuntimeException {

    private Integer code;

    public ResultException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code){
        this.code = code;
    }

}
